package com.insurance.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 * User: 朱雄
 * Date: 2020/10/26 18:11
 * Description:
 * Version: V1.0
 */
public interface LoginRegisterMapper {
    /**
     * 通过用户名查询密码
     * @param user_phone
     * @return
     */
    String queryPwdByUser_name(String user_phone);

    Map queryByUserPhone(@Param("user_phone") String user_phone);

    int updatePasswordByPhone(@Param("user_phone") String user_phone,@Param("user_pwd") String passwordEncryption);


    Set<String> getAuthorMenuByUser(String user_phone);

    List<Map> queryInfoAll(String user_phone);

    String[] queryMenuByUserPhoen(String user_phone);

    void updateUserLastTime(String user_phone);
}
